/*******************************************************************************
*  file    : qloggerobjectappender.hpp
*  created : 01.05.2013
*  author  : 
*******************************************************************************/

#ifndef QLOGGEROBJECTAPPENDER_HPP
#define QLOGGEROBJECTAPPENDER_HPP

#include "qloggerconf.hpp"
#include "qloggerappender.hpp"
#include "qloggerevent.hpp"

class QLOGGER_DECL QLoggerObjectAppender : public QObject, public QLoggerAppender
{
    Q_OBJECT
public:
    QLoggerObjectAppender (int level, const QString &format, const QString& time_format = "yyyy.MM.dd hh:mm:ss.zzz");
    void write (const QLoggerEvent &event);
signals:
    void logStr(QString);
};

#endif // QLOGGEROBJECTAPPENDER_HPP
